package com.ruijiang.controller.task_service;


import com.ruijiang.controller.ApiPrefix;
import com.ruijiang.entity.TaskType;
import com.ruijiang.service.TaskService.TaskTypeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;


@RestController
@RequestMapping(ApiPrefix.TASK_SERVICE+"/taskType")
@Slf4j
public class TaskTypeController {

    @Autowired
    TaskTypeService taskTypeService;

    @GetMapping("/list")
    public List<TaskType> getAllType(){
        log.info("获取全部工单类型");
        return taskTypeService.list();
    }

}
